<template>
	<view class="container">
		<view class="bg">
			<view class="navtitle">
				<view class="left" @click="back"></view>
				<view class="title">
					优惠券
				</view>
			</view>
		</view>
		<view class="card">
			<uni-card style="border-radius: 20rpx;"padding="0rpx">
				<view class="couponlist">
					<view class="couponitem">
						<view class="ctop">
							<view class="topleft">
								<span style="color: #fef5f2;font-size: 24rpx;">仅限于xx加油站使用</span>
								<br />
								<span style="color: #fef5f2;font-size: 34rpx;font-weight: 700;">满200元可用</span>
							</view>
							<view class="topright">
								<span style="color:#fef5f2 ;font-size: 36rpx;">￥</span><span style="color:#fef5f2 ;font-size: 80rpx;font-weight: 700;">20</span>
							</view>
						</view>
						<view class="cbottom">
							<view class="bottomleft" style="color:#fef5f2 ;">
								有效期至：2020.04.11——2023.05.11
							</view>
							<view class="bottomright">
								<span style="color:#fef5f2 ;">去使用</span>
								<view>
								</view>
							</view>
						</view>
					</view>
					<view class="couponitem">
						<view class="ctop">
							<view class="topleft">
								<span style="color: #fef5f2;font-size: 24rpx;">通用</span>
								<br />
								<span style="color: #fef5f2;font-size: 34rpx;font-weight: 700;">满200元可用</span>
							</view>
							<view class="topright">
								<span style="color:#fef5f2 ;font-size: 36rpx;">￥</span><span style="color:#fef5f2 ;font-size: 80rpx;font-weight: 700;">20</span>
							</view>
						</view>
						<view class="cbottom">
							<view class="bottomleft" style="color:#fef5f2 ;">
								有效期至：2020.04.11——2023.05.11
							</view>
							<view class="bottomright">
								<span style="color:#fef5f2 ;">去使用</span>
								<view>
								</view>
							</view>
						</view>
					</view>
				</view>
			</uni-card>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			back() {
				uni.navigateBack({
					delta: 1
				})
			},
		}
	}
</script>

<style scoped>
	page{
		background-color: #ffffff;
	}
	.bg {
		width: 100%;
		height: 360rpx;
		background-color: #3082fb;
		overflow: hidden;
	}

	.navtitle {
		display: flex;
		margin-top: 40rpx;
		/* border: 1px solid red; */
		align-items: center;
	}

	.navtitle .left {
		width: 28rpx;
		height: 28rpx;
		margin-left: 20rpx;
		border-left: 2px solid white;
		border-bottom: 2px solid white;
		transform: rotate(45deg);
	}

	.title {
		color: #e0ebfd;
		font-size: 40rpx;
		margin-left: 260rpx;
		font-family: 'Times New Roman', Times, serif;
		font-weight: 600;
	}
	.card{
		margin-top: -200rpx;
	}
	.couponlist{
		display: flex;
		flex-direction: column;
		align-items: center;
	}
	.couponitem{
		width: 674rpx;
		height: 239rpx;
		background-image: url("../../../static/user3/coupon.png");
		background-repeat: no-repeat;
		background-size: contain;
		/* border: 1px solid red; */
		padding: 18rpx;
		box-sizing: border-box;
		margin: 15rpx;
		/* margin-bottom: 30rpx; */
	}
	.ctop{
		width: 100%;
		height: 144rpx;
		/* border: 1px solid yellow; */
		display: flex;
		border-bottom: 1px #fdaa91 dotted;
	}
	.topleft{
		width: 260rpx;
		/* border: 1px solid yellow; */
	}
	.topright{
		margin-left: 230rpx;
		line-height: 110rpx;
		/* border: 1px solid yellow; */
	}
	.cbottom{
		display: flex;
		height: 64rpx;
		justify-content: space-between;
		align-items: center;
		/* border: 1px solid yellow; */
	}
	.bottomright{
		display: flex;
		align-items: center;
	}
	.bottomright view{
		width: 10rpx;
		height: 10rpx;
		border-top: 2px solid white;
		border-right: 2px solid white;
		transform: rotate(45deg);
		margin-left: 10rpx;
	}
</style>
